package hy.beans;



import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Qualifier;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Scope;
import org.springframework.stereotype.Component;

import javax.annotation.Resource;

@Data
@NoArgsConstructor
@Component("hello")

public class A {
//    @Autowired(required = false)
//    @Qualifier("b0")
    @Resource
    B b1;

    String abc="this is a's abc property";

    public void aa(){
        System.out.println(".......");
    }

}
